package com.tacc.tyun.model.info;

import com.tacc.tyun.base.BaseConstant;

/**
 * @author yu sheng qiang
 * @create 2017-05-03 14:04
 **/
public class ReturnInfo {
    private int state = BaseConstant.SUCCESS;//状态：1.成功，2.失败
    private String errorMsg;//失败原因
    private Object result;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public ReturnInfo() {
    }

    public ReturnInfo(int state, String errorMsg) {
        this.state = state;
        this.errorMsg = errorMsg;
    }

    public ReturnInfo(int state, Object result) {
        this.state = state;
        this.result = result;
    }
}
